﻿using System;
using System.Reflection;
using System.Windows.Forms;

namespace DVDFilmoteka.Forms
{
    partial class AboutForm : LocalizableForm
    {
        public AboutForm()
        {
            InitializeComponent();
        }

        private void AboutBox1_Load(object sender, EventArgs e)
        {
            Localize();
        }

        #region Assembly Attribute Accessors

        public string AssemblyTitle
        {
            get
            {
                return Tools.AssemblyName;
            }
        }

        public string AssemblyVersion
        {
            get
            {
                return Tools.AssemblyVersion;
            }
        }        
        #endregion

        public override void Localize()
        {
            Text = String.Format(Properties.Messages.form_about_text, AssemblyTitle);
            labelProductName.Text = Properties.Messages.form_about_labelProductName;
            labelVersion.Text = String.Format(Properties.Messages.form_about_labelVersion, AssemblyVersion);
            labelCopyright.Text = Properties.Messages.form_about_labelCopyright;
            textBoxDescription.Text = Properties.Messages.form_about_textBoxDescription;
        }

        private void okButton_Click(object sender, EventArgs e)
        {
            Close();
        }
    }
}